PasswordEntryBuffer

A GtkEntryBuffer that locks the underlying memory to prevent it from being swapped to disk.

GtkPasswordEntry uses a GtkPasswordEntryBuffer.

Constructors

this
this(GtkPasswordEntryBuffer* gtkPasswordEntryBuffer, bool ownedRef)

Sets our main struct and passes it to the parent class.

this
this()

Creates a new GtkEntryBuffer using secure memory allocations.

Members

Functions

getPasswordEntryBufferStruct
GtkPasswordEntryBuffer* getPasswordEntryBufferStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

Static functions

getType
GType getType()

Variables

gtkPasswordEntryBuffer
GtkPasswordEntryBuffer* gtkPasswordEntryBuffer;

the main Gtk struct

Inherited Members

From EntryBuffer

gtkEntryBuffer
GtkEntryBuffer* gtkEntryBuffer;

the main Gtk struct

getEntryBufferStruct
GtkEntryBuffer* getEntryBufferStruct(bool transferOwnership)

Get the main Gtk struct

getStruct
void* getStruct()

the main Gtk struct as a void*

getType
GType getType()
deleteText
uint deleteText(uint position, int nChars)

Deletes a sequence of characters from the buffer.

emitDeletedText
void emitDeletedText(uint position, uint nChars)

Used when subclassing GtkEntryBuffer.

emitInsertedText
void emitInsertedText(uint position, string chars, uint nChars)

Used when subclassing GtkEntryBuffer.

getBytes
size_t getBytes()

Retrieves the length in bytes of the buffer.

getLength
uint getLength()

Retrieves the length in characters of the buffer.

getMaxLength
int getMaxLength()

Retrieves the maximum allowed length of the text in @buffer.

getText
string getText()

Retrieves the contents of the buffer.

insertText
uint insertText(uint position, string chars, int nChars)

Inserts @n_chars characters of @chars into the contents of the buffer, at position @position.

setMaxLength
void setMaxLength(int maxLength)

Sets the maximum allowed length of the contents of the buffer.

setText
void setText(string chars, int nChars)

Sets the text in the buffer.

addOnDeletedText
gulong addOnDeletedText(void delegate(uint, uint, EntryBuffer) dlg, ConnectFlags connectFlags)

The text is altered in the default handler for this signal.

addOnInsertedText
gulong addOnInsertedText(void delegate(uint, string, uint, EntryBuffer) dlg, ConnectFlags connectFlags)

This signal is emitted after text is inserted into the buffer.

Meta